﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace HGPFramework
{
    public class HGPDownloads
    {
        public static bool Download(string url, string path)
        {
            try
            {
                var webClient = new WebClient();
                webClient.DownloadFile(new Uri(url), path);
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
